package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 销售维修表
 * </p>
 *
 * @author LX
 * @since 2018-09-12
 */
@TableName("erp_sale_repair_order")
public class ErpSaleRepairOrder extends Model<ErpSaleRepairOrder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 客户 ID
     */
    @TableField("customer_id")
    private Integer customerId;
    @TableField("user_id")
    private Integer userId;
    /**
     * 销售维修日期
     */
    @TableField("sale_repair_date")
    private String saleRepairDate;
    /**
     * 销售维修单号
     */
    @TableField("sale_repair_sheet_id")
    private String saleRepairSheetId;
    /**
     * 车辆里程
     */
    @TableField("sale_repair_mileage")
    private Double saleRepairMileage;
    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;
    /**
     * 车辆牌号
     */
    @TableField("car_plate")
    private String carPlate;//苏D23186
    /**
     *  挂车牌号
     */
    @TableField("trailer_plate")
    private String trailerPlate;
    /**
     * 费用合计
     */
    @TableField("sale_repair_cost")
    private Double saleRepairCost;
    /**
     * 积分消费
     */
    @TableField("sale_repair_integral_consumption")
    private Double saleRepairIntegralConsumption;
    /**
     * 实收金额
     */
    @TableField("sale_repair_paid_amount")
    private Double saleRepairPaidAmount;
    /**
     * 收款方式
     */
    @TableField("sale_repair_payment_method")
    private String saleRepairPaymentMethod;
    /**
     * 检测 本次积分
     */
    @TableField("sale_repair_integral")
    private Double saleRepairIntegral;
    /**
     * 服务经办
     */
    @TableField("service_attn")
    private String serviceAttn;
    /**
     * 库管经办
     */
    @TableField("warehouse_attn")
    private String warehouseAttn;
    /**
     * 客户经办
     */
    @TableField("customer_attn")
    private String customerAttn;
    /**
     * 财务经办
     */
    @TableField("finance_attn")
    private String financeAttn;
    /**
     * 付款状态0未付款1已付款
     */
    @TableField("pay_state")
    private Integer payState;
    /**
     * 收款状态0未收款
     */
    @TableField("receivables_state")
    private  Integer receivablesState;


    private transient List<Integer>  shangpinxiaoshouCount; //erpSaleRepairSale    商品销售
    private transient List<Integer>  weixiuhaocaiCount;   //物料维修的下面那块的 ,维修耗材
    private transient List<Integer>  weixiutaiweiCount;  //物料维修里面的  ,  上面那块
    private transient List<Integer>  haocaimingxiCount;  //车辆维修下面的,耗材明细
    private  transient  List<Integer>  cheliangweixiuCount;//ErpSaleRepairGarage 车辆维修上面的,

    public List<Integer> getCheliangweixiuCount() {
        return cheliangweixiuCount;
    }

    public void setCheliangweixiuCount(List<Integer> cheliangweixiuCount) {
        this.cheliangweixiuCount = cheliangweixiuCount;
    }

    public List<Integer> getShangpinxiaoshouCount() {
        return shangpinxiaoshouCount;
    }

    public void setShangpinxiaoshouCount(List<Integer> shangpinxiaoshouCount) {
        this.shangpinxiaoshouCount = shangpinxiaoshouCount;
    }

    public List<Integer> getWeixiuhaocaiCount() {
        return weixiuhaocaiCount;
    }

    public void setWeixiuhaocaiCount(List<Integer> weixiuhaocaiCount) {
        this.weixiuhaocaiCount = weixiuhaocaiCount;
    }

    public List<Integer> getWeixiutaiweiCount() {
        return weixiutaiweiCount;
    }

    public void setWeixiutaiweiCount(List<Integer> weixiutaiweiCount) {
        this.weixiutaiweiCount = weixiutaiweiCount;
    }

    public List<Integer> getHaocaimingxiCount() {
        return haocaimingxiCount;
    }

    public void setHaocaimingxiCount(List<Integer> haocaimingxiCount) {
        this.haocaimingxiCount = haocaimingxiCount;
    }

    private transient  Integer custId;
    private transient   List<ErpSaleRepairGarage> repairGarages;    //车辆维修
    private transient    List<ErpSaleRepairRepair> saleRepairRepairs;  //物料维修
    private transient   List<ErpSaleRepairSale> saleRepairSales; //商品销售
    private transient   List<ErpSaleRepairSale> hc; //物料耗材


    public Integer getCustId() {
        return custId;
    }

    public void setCustId(Integer custId) {
        this.custId = custId;
    }

    public List<ErpSaleRepairGarage> getRepairGarages() {
        return repairGarages;
    }

    public void setRepairGarages(List<ErpSaleRepairGarage> repairGarages) {
        this.repairGarages = repairGarages;
    }

    public List<ErpSaleRepairRepair> getSaleRepairRepairs() {
        return saleRepairRepairs;
    }

    public void setSaleRepairRepairs(List<ErpSaleRepairRepair> saleRepairRepairs) {
        this.saleRepairRepairs = saleRepairRepairs;
    }

    public List<ErpSaleRepairSale> getSaleRepairSales() {
        return saleRepairSales;
    }

    public void setSaleRepairSales(List<ErpSaleRepairSale> saleRepairSales) {
        this.saleRepairSales = saleRepairSales;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getSaleRepairDate() {
        return saleRepairDate;
    }

    public void setSaleRepairDate(String saleRepairDate) {
        this.saleRepairDate = saleRepairDate;
    }

    public String getSaleRepairSheetId() {
        return saleRepairSheetId;
    }

    public void setSaleRepairSheetId(String saleRepairSheetId) {
        this.saleRepairSheetId = saleRepairSheetId;
    }

    public Double getSaleRepairMileage() {
        return saleRepairMileage;
    }

    public void setSaleRepairMileage(Double saleRepairMileage) {
        this.saleRepairMileage = saleRepairMileage;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCarPlate() {
        return carPlate;
    }

    public void setCarPlate(String carPlate) {
        this.carPlate = carPlate;
    }

    public String getTrailerPlate() {
        return trailerPlate;
    }

    public void setTrailerPlate(String trailerPlate) {
        this.trailerPlate = trailerPlate;
    }

    public Double getSaleRepairCost() {
        return saleRepairCost;
    }

    public void setSaleRepairCost(Double saleRepairCost) {
        this.saleRepairCost = saleRepairCost;
    }

    public Double getSaleRepairIntegralConsumption() {
        return saleRepairIntegralConsumption;
    }

    public void setSaleRepairIntegralConsumption(Double saleRepairIntegralConsumption) {
        this.saleRepairIntegralConsumption = saleRepairIntegralConsumption;
    }

    public Double getSaleRepairPaidAmount() {
        return saleRepairPaidAmount;
    }

    public void setSaleRepairPaidAmount(Double saleRepairPaidAmount) {
        this.saleRepairPaidAmount = saleRepairPaidAmount;
    }

    public String getSaleRepairPaymentMethod() {
        return saleRepairPaymentMethod;
    }

    public void setSaleRepairPaymentMethod(String saleRepairPaymentMethod) {
        this.saleRepairPaymentMethod = saleRepairPaymentMethod;
    }

    public Double getSaleRepairIntegral() {
        return saleRepairIntegral;
    }

    public void setSaleRepairIntegral(Double saleRepairIntegral) {
        this.saleRepairIntegral = saleRepairIntegral;
    }

    public String getServiceAttn() {
        return serviceAttn;
    }

    public void setServiceAttn(String serviceAttn) {
        this.serviceAttn = serviceAttn;
    }

    public String getWarehouseAttn() {
        return warehouseAttn;
    }

    public void setWarehouseAttn(String warehouseAttn) {
        this.warehouseAttn = warehouseAttn;
    }

    public String getCustomerAttn() {
        return customerAttn;
    }

    public void setCustomerAttn(String customerAttn) {
        this.customerAttn = customerAttn;
    }

    public String getFinanceAttn() {
        return financeAttn;
    }

    public void setFinanceAttn(String financeAttn) {
        this.financeAttn = financeAttn;
    }

    public Integer getPayState() {
        return payState;
    }

    public void setPayState(Integer payState) {
        this.payState = payState;
    }

    public Integer getReceivablesState() {
        return receivablesState;
    }

    public void setReceivablesState(Integer receivablesState) {
        this.receivablesState = receivablesState;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpSaleRepairOrder{" +
        ", id=" + id +
        ", customerId=" + customerId +
        ", userId=" + userId +
        ", saleRepairDate=" + saleRepairDate +
        ", saleRepairSheetId=" + saleRepairSheetId +
        ", saleRepairMileage=" + saleRepairMileage +
        ", customerName=" + customerName +
        ", carPlate=" + carPlate +
        ", trailerPlate=" + trailerPlate +
        ", saleRepairCost=" + saleRepairCost +
        ", saleRepairIntegralConsumption=" + saleRepairIntegralConsumption +
        ", saleRepairPaidAmount=" + saleRepairPaidAmount +
        ", saleRepairPaymentMethod=" + saleRepairPaymentMethod +
        ", saleRepairIntegral=" + saleRepairIntegral +
        ", serviceAttn=" + serviceAttn +
        ", warehouseAttn=" + warehouseAttn +
        ", customerAttn=" + customerAttn +
        ", financeAttn=" + financeAttn +
        ", payState=" + payState +
        ", receivablesState=" + receivablesState +
        "}";
    }
}
